// simple_verify.js - 简单验证依赖是否正确安装
console.log("开始验证依赖包...");

// 测试 @langchain/community
try {
    const { HNSWLib } = require("@langchain/community/vectorstores/hnswlib");
    console.log("✓ @langchain/community HNSWLib 可用");
} catch (error) {
    console.error("✗ @langchain/community HNSWLib 不可用:", error.message);
}

// 测试 @langchain/deepseek
try {
    const { DeepSeekEmbeddings } = require("@langchain/deepseek");
    console.log("✓ @langchain/deepseek 可用");
} catch (error) {
    console.error("✗ @langchain/deepseek 不可用:", error.message);
}

// 测试 hnswlib-node
try {
    const hnsw = require("hnswlib-node");
    console.log("✓ hnswlib-node 可用");
} catch (error) {
    console.error("✗ hnswlib-node 不可用:", error.message);
}

// 测试 langchain/text_splitter
try {
    const { RecursiveCharacterTextSplitter } = require("langchain/text_splitter");
    console.log("✓ langchain/text_splitter 可用");
} catch (error) {
    console.error("✗ langchain/text_splitter 不可用:", error.message);
}

console.log("验证完成。");